﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crystal.libs
{
    [AttributeUsage(AttributeTargets.Class)]
    public class MapComponentAttribute : Attribute
    {
        public string Name;
        public string Description;
        
        public MapComponentAttribute(string name, string description)
        {
            this.Name = name;
            this.Description = description;
        }
    }

    [AttributeUsage(AttributeTargets.Class)]
    public class Hidden : Attribute
    {

    }

    [AttributeUsage(AttributeTargets.Property)]
    public class CellProperty : Attribute
    {
        public string Name;
        public string Description;
        public object DefaultValue;

        public CellProperty(string name, string description, object defaultValue)
        {
            this.Name = name;
            this.Description = description;
            this.DefaultValue = defaultValue;
        }
    }
}
